
#include <stdio.h>
#include "sort.h"


static int testArray1[10] = {21,77,90,23,7,9,1,377,81,11};
static int testArray2[10] = {21,77,90,23,7,9,1,377,81,11};
static int testArray3[10] = {21,77,90,23,7,9,1,377,81,11};
static int testArray4[] = {21,77,90,23,7,12,68,661,33,67,12,1};


int main(int argc, char** argv)
{
	int i = 0;
	printf("%s\n", "Before Bubble Sort:");
	for(i=0;i<10;i++)
		printf("%d\t", testArray1[i]);
	
	printf("\n");

	bubbleSort(testArray1, 10);

	printf("%s\n", "After Bubble Sort:");

	for(i=0;i<10;i++)
		printf("%d\t", testArray1[i]);

	printf("\n");

	printf("%s\n", "Before Insert sort:");
	for(i=0;i<10;i++)
		printf("%d\t", testArray2[i]);
	
	printf("\n");

	insertSort(testArray2, 10);

	printf("%s\n", "After Insert Sort:");

	for(i=0;i<10;i++)
		printf("%d\t", testArray2[i]);

	printf("\n");

	printf("%s\n", "Before Shell sort:");
	for(i=0;i<10;i++)
		printf("%d\t", testArray3[i]);
	
	printf("\n");

	shellSort(testArray3, 10);

	printf("%s\n", "After shell Sort:");

	for(i=0;i<10;i++)
		printf("%d\t", testArray3[i]);

	printf("\n");

	printf("%s sizeof(testArray4):%d\n", "Before quick sort:", sizeof(testArray4));
	for(i=0;i<sizeof(testArray4)/4;i++)
		printf("%d\t", testArray4[i]);
	
	printf("\n");

	quickSort(testArray4, 0, sizeof(testArray4)/4-1);

	printf("%s\n", "After quick Sort:");

	for(i=0;i<sizeof(testArray4)/4;i++)
		printf("%d\t", testArray4[i]);

	printf("\n");

	return 0;
	
}
